package com.tansun.easycare.rule.globalsearch.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tansun.easycare.rule.common.service.impl.RuleBaseServiceImpl;
import com.tansun.easycare.rule.globalsearch.dao.RuleGlobalSearchDao;
import com.tansun.easycare.rule.globalsearch.entity.RuleGlobalSearch;
import com.tansun.easycare.rule.globalsearch.service.RuleGlobalSearchService;

@Service
public class RuleGlobalSearchServiceImpl extends RuleBaseServiceImpl<RuleGlobalSearchDao, RuleGlobalSearch> implements RuleGlobalSearchService {
	@Autowired
	private RuleGlobalSearchDao ruleGlobalSearchDao;
	/**
	 * 规则搜索，变量为主表
	 * @param ruleName
	 * @param dataParamsName
	 * @return
	 * @throws Exception
	 */
	public List<RuleGlobalSearch> getRuleGlobalSearchListByParams(RuleGlobalSearch ruleGlobalSearch)throws Exception{
		return ruleGlobalSearchDao.getRuleGlobalSearchListByParams(ruleGlobalSearch);
	}
	/**
	 * 规则搜索，规则为主表
	 * @param ruleName
	 * @param dataParamsName
	 * @return
	 * @throws Exception
	 */
	public List<RuleGlobalSearch> getRuleGlobalSearchListByRule(RuleGlobalSearch ruleGlobalSearch)throws Exception{
		return ruleGlobalSearchDao.getRuleGlobalSearchListByRule(ruleGlobalSearch);
	}
	/**
	 * 规则搜索，模型为主表
	 * @param ruleName
	 * @param dataParamsName
	 * @return
	 * @throws Exception
	 */
	public List<RuleGlobalSearch> getRuleGlobalSearchListByModel(RuleGlobalSearch ruleGlobalSearch)throws Exception{
		return ruleGlobalSearchDao.getRuleGlobalSearchListByModel(ruleGlobalSearch);
	}
}
